package exception;

import java.io.FileOutputStream;
import java.io.IOException;

public class AutoCloseDemo01 {
    public static void main(String[] args) {
        try (FileOutputStream fos = new FileOutputStream("message.txt",true)) {
            fos.write(100);

        }catch (IOException e){
            e.printStackTrace();

        }



    }
}
